package jtk.project4.fleet.templateField;

import java.awt.Dimension;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.control.RadioControl;
import nl.coderight.jazz.form.field.SpinnerField;
import nl.coderight.jazz.form.field.button.RadioButton;

public class ContohRadioButtonField extends GroupControl {
	private RadioControl<String> radioControl ;
	private RadioButton radioButton1 ;
	private RadioButton radioButton2 ;
	
	public ContohRadioButtonField(String bindID){
		setTitle("header.field");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		radioControl = new RadioControl<String>("radio control") ;
		radioButton1 = new RadioButton("tes1");
		radioButton2 = new RadioButton("tes2");
		radioControl.addRadioButton(radioButton1,"radio1");
		radioControl.addRadioButton(radioButton2, "radio2");
		
	}
	
	private void createLayout() {
		setLayout(new FormLayout())
		.addLabel("label.textArea")		.addField(radioControl) ;
	}
	
}
